/**
 * 截取字符串后二位
 * @param name
 * @param len
 * @returns {string}
 */
export function filterName(name = "", len) {
    let length = name.length;
    let back = "";
    let start = 0;
    if(length-len>0){
        start = length-len;
    }
    for(let i = start;i<length;i++){
        if(name[i]){
            back += name[i];
        }
    }
    return back;
}